package com.aios.action.settings.controller;

import java.util.List;

import com.aios.entity.Controller;

public class ControllerListAction extends AbstractControllerAction {

	private static final long serialVersionUID = 1L;

	private List<Controller> list;
	
	private String controllerId;

	public String execute() {
		this.list = controllerService
				.findControllerByUserID(getSessionUserVariable().getId());
		if(id!=null) {
			addActionMessage(actionMessage);
		}
		
		/*System.out.println("ID:"+id);
		System.out.println("ActionError"+actionError);
		System.out.println("ActionMessage"+actionMessage);*/
		return SUCCESS;
	}

	public List<Controller> getList() {
		return list;
	}

	public void setList(List<Controller> list) {
		this.list = list;
	}

	public String getControllerId() {
		return controllerId;
	}

	public void setControllerId(String controllerId) {
		this.controllerId = controllerId;
	}
	
}
